package com.musicsonar.android.dialog;

import android.app.ProgressDialog;
import android.content.Context;

public class MusicSonarDialog extends ProgressDialog {
    
    public MusicSonarDialog(Context context) {
        super(context);
    }

    public MusicSonarDialog(Context context, int theme) {
        super(context, theme);
    }

    public static MusicSonarDialog show(Context context, CharSequence title,
            CharSequence message) {
        return show(context, title, message, false);
    }

    public static MusicSonarDialog show(Context context, CharSequence title,
            CharSequence message, boolean indeterminate) {
        return show(context, title, message, indeterminate, false, null);
    }

    public static MusicSonarDialog show(Context context, CharSequence title,
            CharSequence message, boolean indeterminate, boolean cancelable) {
        return show(context, title, message, indeterminate, cancelable, null);
    }

    public static MusicSonarDialog show(Context context, CharSequence title,
            CharSequence message, boolean indeterminate,
            boolean cancelable, OnCancelListener cancelListener) {
    	MusicSonarDialog dialog = new MusicSonarDialog(context);
        dialog.setTitle(title);
        dialog.setMessage(message);
        dialog.setIndeterminate(indeterminate);
        dialog.setCancelable(cancelable);
        dialog.setOnCancelListener(cancelListener);
        dialog.show();
        return dialog;
    }

}